package com.kqb.mapper;

import com.kqb.pojo.ForwarderInquiryList;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;


@Mapper
public interface ForwarderInquiryListMapper {

    /**
     * 查询最大编码
     * @return
     */
    String queryMaxCode();

    /**
     * 保存货代询价
     * @param entity
     * @return
     */
    int save(ForwarderInquiryList entity);

    /**
     * 查询货代询价单
     * @param map
     * @return
     */
    List<Map> queryByMap(Map map);

    /**
     * 通过询价编码查询询价订单
     * @param code
     * @return
     */
    ForwarderInquiryList queryByCode(String code);

    /**
     * 更新询价
     * @param forwarderInquiryList
     * @return
     */
    int updateInquiry(ForwarderInquiryList forwarderInquiryList);


}
